<html>
    <head>
        <script src="./jquery.min.js"></script>
        <script src="./fw4wdb.js"></script>
        <script>
            (function(){
                $.wdb("wdb_demo",4.0,{keyPath:"datetime",index:[{datetime:{unique:true}}]}).open(function(obj){
                    obj.add({datetime:new Date(),name:"Hello World"});
                    obj.each(function(a){
                        console.log(a);
                    });

                    obj.index("datetime").le(new Date()).range(function(a){
                        console.log("== : ",a);
                    });
                });
            })();
        </script>
    </head>
    <body></body>
</html>
